#include<bits/stdc++.h>
using namespace std;
const int N=1e6;
bool b[N],e[N];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,cnt=0;
    cin>>n;
    int a[n];
    for(int i=0;i<n;i++){
        cin>>a[i];
    }
    sort(a,a+n);
    for(int i=0;i<n;i++){
        if(!b[i]){
            for(int j=i+1;j<n;j++){
                if(a[j]>a[i]&&!e[j]){
                    cnt++;
                    b[i]=1;
                    e[j]=1;
                    break;
                }
            }
        }
    }
    cout<<n-cnt;
    return 0;
}
